package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.QualityQarBasicStandard;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-qar-srv")
public interface QualityQarBasicStandardService {

	// 新增或者提交qar母本按钮
	@RequestMapping(value = "/p/cs/QualityQarBasicStandardService/insertQarBasicStandard",method = RequestMethod.POST)
	public ResultBean insertQarBasicStandard(@RequestBody QualityQarBasicStandard qualityQarBasicStandard);

	// 通过母本主键获取母本信息
	@RequestMapping(value = "/p/cs/QualityQarBasicStandardService/selectByQarBasicStandardId",method = RequestMethod.POST)
	public ResultBean selectByQarBasicStandardId(@RequestBody QualityQarBasicStandard qualityQarBasicStandard);

	// 通过母本主键删除对应数据信息及附属信息
	@RequestMapping(value = "/p/cs/QualityQarBasicStandardService/batchDeleteByQarBasicStandardIds",method = RequestMethod.POST)
	public ResultBean batchDeleteByQarBasicStandardIds(@RequestBody List<QualityQarBasicStandard> list);

	// 母本升版功能
	@RequestMapping(value = "/p/cs/QualityQarBasicStandardService/qarBasicStandardUpgrade",method = RequestMethod.POST)
	public ResultBean qarBasicStandardUpgrade(@RequestBody QualityQarBasicStandard qualityQarBasicStandard);

	// 取消升版功能
	@RequestMapping(value = "/p/cs/QualityQarBasicStandardService/cancelQarBasicStandardUpgrade",method = RequestMethod.POST)
	public ResultBean cancelQarBasicStandardUpgrade(@RequestBody QualityQarBasicStandard qualityQarBasicStandard);

	// 分页查询qar母本对应数据
	@RequestMapping(value = "/p/cs/QualityQarBasicStandardService/selectBySomeFields",method = RequestMethod.POST)
	public ResultBean selectBySomeFields(@RequestBody QualityQarBasicStandard qualityQarBasicStandard);

}
